package bb.lanxing.calc.calculator;

import bb.lanxing.calc.data.PowerratePoint;
import android.util.Log;


public class PowerrateCalc {
    final static private String TAG = "PowerrateCalc";
    private PowerratePoint lastPowerratePoint;

    public void calc(PowerratePoint powerratePoint) {
        if (this.lastPowerratePoint == null) {
            this.lastPowerratePoint = powerratePoint;
            return;
        }
        int powerrate = powerratePoint.getPowerrate();
        powerratePoint.setPowerrate(powerrate);
        this.lastPowerratePoint = powerratePoint;
    }

    public void release() {
        this.lastPowerratePoint = null;
    }
}
